package pl.ptemich.tankwars;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

import pl.ptemich.tankwars.tools.LoggingTools;

public class GraphicConstants {

  public static Image SELECTION_IMAGE; 
  
  public static Image WHITE_BUG_IMAGE;
  
  public static Image BLACK_BUG_IMAGE;
  
  public static int SCENE_WIDTH = 1024;
  
  public static int SCENE_HEIGHT = 768;
  
  public static Boolean FULL_SCREEN_ENABLED = Boolean.TRUE;
  
  public static Boolean FULL_SCREEN_DISABLED = Boolean.FALSE;
  
  public static void initResources() {
    try {
      SELECTION_IMAGE = new Image("resources/images/selection.png");
      WHITE_BUG_IMAGE = new Image("resources/images/bugWhite.png");
      BLACK_BUG_IMAGE = new Image("resources/images/bugBlack.png");
    } catch (SlickException e) {
      LoggingTools.error("unable to load required resources");
    }     
  }
  
}
